//
//  CalculaViewCell.m
//  AntsExpress
//
//  Created by slccper on 16/1/8.
//  Copyright © 2016年 slccper. All rights reserved.
//

#import "CalculaViewCell.h"
#import "CalculationNextController.h"

@implementation CalculaViewCell

- (void)awakeFromNib {
    self.addTitle.layer.borderColor=[UIColor redColor].CGColor;
    self.addTitle.layer.borderWidth=1;
    self.addTitle.layer.cornerRadius=2;
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}
-(void)setDataWith:(NSDictionary *)calcula{
    self.calcula =calcula;
    [self.addTitle setTitle:[calcula objectForKey:@"name"] forState:UIControlStateNormal];
    
}
- (IBAction)AddAction:(id)sender {
    CalculationNextController *next = [[CalculationNextController alloc]initWithNibName:@"CalculationNextController" bundle:nil];
    next.calcula = self.calcula;
    next.isBack=YES;
    [self.parentViewController.navigationController pushViewController:next animated:YES];
}

@end
